﻿<provibeLibraryBase:UserControlBase x:Class="SBPweb.PROvibe.Client.Core.Controls.PowerButton"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:provibeLibraryBase="clr-namespace:SBPweb.PROvibe.Client.Library.Base;assembly=SBPweb.PROvibe.Client.Library"
    xmlns:riaControls="clr-namespace:SBPweb.RIA.Client.Controls.Content;assembly=SBPweb.RIA.Client.Controls"
    xmlns:riaConverters="clr-namespace:SBPweb.RIA.Client.Controls.Converters;assembly=SBPweb.RIA.Client.Controls"
    mc:Ignorable="d"
    d:DesignHeight="24" d:DesignWidth="24">
    <provibeLibraryBase:UserControlBase.Resources>
        <riaConverters:ImageSourceConverter x:Key="imgSourceConverter" />
    </provibeLibraryBase:UserControlBase.Resources>

    <ContentControl Style="{StaticResource ToolBarItemButtonNormal}"
            HorizontalAlignment="Center" VerticalAlignment="Top" Margin="2"
            Loaded="Button_Loaded" MouseEnter="Button_MouseEnter" MouseLeave="Button_MouseLeave">
        <riaControls:ToolBarItem ImageSource="{Binding Converter={StaticResource imgSourceConverter}, ConverterParameter=~/Resources/Power_48x48.png, Source={StaticResource imgSourceConverter}}" Stretch="Uniform" MouseLeftButtonUp="ToolBarItem_MouseLeftButtonUp">
            <riaControls:ToolBarItem.Effect>
                <DropShadowEffect Color="#FF000000" Opacity="0.7" Direction="-90" BlurRadius="20" />
            </riaControls:ToolBarItem.Effect>
        </riaControls:ToolBarItem>
    </ContentControl>
</provibeLibraryBase:UserControlBase>